import request from '@/utils/request'

// 查询货物配送列表
export function listDelivery(query) {
  return request({
    url: '/bysj/delivery/list',
    method: 'get',
    params: query
  })
}

// 查询货物配送详细
export function getDelivery(deliveryId) {
  return request({
    url: '/bysj/delivery/' + deliveryId,
    method: 'get'
  })
}

// 新增货物配送
export function addDelivery(data) {
  return request({
    url: '/bysj/delivery',
    method: 'post',
    data: data
  })
}

// 修改货物配送
export function updateDelivery(data) {
  return request({
    url: '/bysj/delivery',
    method: 'put',
    data: data
  })
}

// 删除货物配送
export function delDelivery(deliveryId) {
  return request({
    url: '/bysj/delivery/' + deliveryId,
    method: 'delete'
  })
}

// 导出货物配送
export function exportDelivery(query) {
  return request({
    url: '/bysj/delivery/export',
    method: 'get',
    params: query
  })
}

// 查询仓库存储列表
export function listGoods(query) {
  return request({
    url: '/bysj/delivery/goodsList',
    method: 'get',
    params: query
  })
}
